package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.util.Date;

/**
 * 设备信息对象 device
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device")
public class Device extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备ID
     */
    @TableId(value = "id")
    private Long id;

    private Long tunnelId;

    /**
     * 设备分组ID
     */
    private Long groupId;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 名称
     */
    private String deviceName;


    /**
     * 状态 (0-离线, 1-正常)
     */
    private int status;
    private int collect;

    /**
     * 地址
     */
    private String address;

    private String remark;

    private String site;

    private String pileNumber;
    private int deviceType;
    private Date lastPing;


}
